package io.day03;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("src/main/java/io/ISRDemo.java");
        InputStreamReader isr = new InputStreamReader(fis);
        int d ;
        while((d = isr.read())!=-1){
            //read能读取到换行符
            System.out.print((char) d);
        }
        System.out.println("写入完毕！！！");
        isr.close();
    }
}
